<template>
  <div class="home">
    <p ref="abc">我是vue2</p>
  </div>
</template>

<script>
// @ is an alias to /src
import HelloWorld from '@/components/HelloWorld.vue'

export default {
  name: 'Home',
  components: {
    HelloWorld
  },
  mounted() {
    // 我们可以通过ref获取dom节点
    console.log(this.$refs.abc);
  },
}

</script>
